package eaxm;
/**
 * @Auther:小陈的Java
 * 选择排序
 */
public class Number3 {
    public static void main(String[] args) {
        int arr[]={3,1,23,2,11,13,4,9,15,6};
        int i,j;
        for(i=0;i<arr.length-1;i++){
            for(j=i+1;j<arr.length;j++){
                if(arr[i]>arr[j]){
                    int a =arr[j];
                    arr[j] =arr[i];
                    arr[i] = a;
                }
            }
        }
        for (i=0;i<arr.length;i++){
            System.out.print(arr[i]+"\t");
        }
        System.out.println();
    }
}

